use fltk::button::{ButtonType, CheckButton, RadioButton, RadioRoundButton};
use fltk::prelude::*;
use fltk::*;
fn main() {
    let mut app = app::App::default().with_scheme(app::Scheme::Gtk);
    app::get_system_colors();
    let mut window = window::Window::default().with_size(800, 600).with_pos(0, 0);
    let mut frame = frame::Frame::new(10, 20, 100, 30, "");
    //多选
    let mut checkbox = CheckButton::new(20, 30, 50, 30, "百度");
    let mut checkbox2 = CheckButton::new(80, 30, 50, 30, "搜狗");
    //单选
    let mut radio_btn1 = RadioRoundButton::new(140, 30, 60, 30, "单选项1");
    let mut radio_btn2 = RadioRoundButton::new(210, 30, 60, 30, "单选项2");
    let mut radio_btn3 = RadioRoundButton::new(280, 30, 60, 30, "单选项3");
    let mut radio_btn4 = RadioRoundButton::new(350, 30, 60, 30, "单选项4");
    window.end();
    window.show();
    app::run().unwrap();
}
